<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="Content-Language" content="zh-CN" />
    <meta http-equiv="X-UA-Compatible" content="edge" />
    <meta http-equiv="pragma" content="no-cache"> 
    <meta http-equiv="Cache-Control" content="no-cache, must-revalidate"> 
    <meta http-equiv="expires" content="0">
    <meta name="author" content="quzizhu" />
    <meta name="Copyright" content="zhenmuwang" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="icon" href="__PUBLIC__/favicon.ico" type="image/x-icon" />
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/layui/css/layui.css">
    <script src="__JQUERY__"></script>
    <script src="__COMMON__/common.js"></script>
    <script src="__PUBLIC__/layer/layer.js"></script>
    <script src="__PUBLIC__/layui/layui.js"></script>
    <link rel="stylesheet" href="__HOME__/css/hezuo.css">
    <script src="__HOME__/js/hezuo.js"></script>
    <link rel="stylesheet" href="__COMMON__/common.css">
	<title>商家合作 趣自助</title>
	<meta name="keywords" content="{$kw}">
    <meta name="description" content="{$desc}">
</head>
<body>
    <div style="height: 1400px">
		<div class="back-img">
			<img src="__IMAGE__/common/hezuo.png">
		</div>
		<div id="detail-box">
			<div class="detail-box-text">
				<form class="layui-form" action="">
					<div class="title-top">
						<h1>请介绍一下您的商家信息，以帮助我们更好的了解</h1>
						<!--						<div class="title-background"></div>-->
						<div class="title-background"></div>
					</div>
					<div class="detail-box-message">
						<div class="layui-row">
							<div class="layui-col-md1 title-green"></div>
							<div class="layui-col-md11">
								<h2>基本信息</h2>
							</div>
						</div>
						<div class="layui-form-item">

							<ul>
								<li>
									<label class="layui-form-label title-name necessry">店铺名称</label>
									<div class="layui-input-block">
										<input type="text" name="shop_name" required lay-verify="required"
											placeholder="请填写店铺名称" autocomplete="off" class="layui-input">
									</div>
								</li>
								<li>
									<label class="layui-form-label title-name necessry">主营</label>
									<div class="layui-input-block">
										<input type="text" name="main_sall" required lay-verify="required"
											placeholder="请填写主营信息" autocomplete="off" class="layui-input">
									</div>
								</li>
								<li>
									<label class="layui-form-label title-name necessry">简要描述</label>
									<div class="layui-input-block">
										<input type="text" name="resume" required lay-verify="required"
											placeholder="尽可能简介说明什么合作？比如加入我们的供应链等" autocomplete="off"
											class="layui-input">
									</div>
								</li>
							</ul>
						</div>
					</div>
					<div class="detail-box-message">
						<div class="layui-row">
							<div class="layui-col-md1 title-green"></div>
							<div class="layui-col-md11">
								<h2>其他资料</h2>
							</div>
						</div>
						<div class="layui-form-item">

							<ul>
								<li>
									<label class="layui-form-label title-name necessry">企业主体</label>
									<div class="layui-input-block">
										<input type="text" name="company" required lay-verify="required"
											placeholder="请填写所属企业的工商名称" autocomplete="off" class="layui-input">
									</div>
								</li>
								<li>
									<label class="layui-form-label title-name necessry">所在地</label>
									<div class="layui-input-block">
										<input type="text" name="local" required lay-verify="required"
											placeholder="请填写省份和城市" autocomplete="off" class="layui-input">
									</div>
								</li>
								<li>
									<label class="layui-form-label title-name">网站</label>
									<div class="layui-input-block">
										<input type="text" name="web" placeholder="没有可不填" autocomplete="off"
											class="layui-input">
									</div>
								</li>
								<li>
									<label class="layui-form-label title-name">微信公众号</label>
									<div class="layui-input-block">
										<input type="text" name="wechat_public" placeholder="输入公众号名称或ID,没有可不填"
											autocomplete="off" class="layui-input">
									</div>
								</li>
							</ul>
						</div>
					</div>
					<div class="title-top">
						<h1>请介绍一下您的商家信息，以帮助我们更好的了解</h1>
						<div class="title-background"></div>
					</div>
					<div class="detail-box-message">
						<div class="layui-row">
							<div class="layui-col-md1 title-green"></div>
							<div class="layui-col-md11">
								<h2>联系人信息</h2>
							</div>
						</div>
						<div class="layui-form-item">

							<ul>
								<li>
									<label class="layui-form-label title-name necessry">姓名</label>
									<div class="layui-input-block">
										<input type="text" name="name" required lay-verify="required"
											placeholder="请填写您的姓名" autocomplete="off" class="layui-input">
									</div>
								</li>
								<li>
									<label class="layui-form-label title-name">手机号</label>
									<div class="layui-input-block">
										<input type="text" name="phone" maxlength="11" placeholder="请填写您的手机号,您也可以仅提供微信号"
											autocomplete="off" class="layui-input">
									</div>
								</li>
								<li>
									<label class="layui-form-label title-name necessry">微信号</label>
									<div class="layui-input-block">
										<input type="text" name="wechat" required lay-verify="required"
											placeholder="请填写你的微信号" autocomplete="off" class="layui-input">
									</div>
								</li>
							</ul>
						</div>
					</div>
					<div class="layui-form-item">
						<div class="layui-input-block">
							<button class="layui-btn" lay-submit lay-filter="formDemo"
								style="background-color: #61B736">立即提交</button>
							<button type="reset" class="layui-btn layui-btn-primary">重置</button>
						</div>
					</div>
				</form>
			</div>



		</div>
	</div>
    
    <hr class="layui-bg-gray">
    <footer id='layui-foot' style="width: 100%;height: 80px;background-color: white;">
        <div class="layui-main"; style="text-align: center; margin-top: 0px;">
            <div style="overflow: hidden;">
                <p class="site_info" style="margin-top: 10px ;color: #BABABA;">Copyright ©2013-2020 ZHENMUWANG.COM All Right Reserved</p>
                <p>
                    <span class="site_info" style="font-size: 12px;color: #BABABA;font-weight: 600;">汕头市宜麦有道供应链有限公司 版权所有 |</span>
                    <a style="font-size: 12px;color: #BABABA;font-weight: 600;" href="http://www.miibeian.gov.cn" title="粤ICP备18079030号" target="_blank">粤ICP备18079030号</a>
                    <a style="font-size: 12px;color: #BABABA;font-weight: 600;" href="http://www.miibeian.gov.cn">粤公网安备44051102000498号</a>
                </p>
                <p>
                {foreach $fd_link as $l}
                    <a href="{$l.url}" style="font-size: 12px;color: #BABABA;font-weight: 600;">{$l.title}</a>
                {/foreach}
                </p>
            </div>
        </div>
    </footer>
    <script>
        //Demo
		layui.use('form', function () {
			var form = layui.form;

			//监听提交
			form.on('submit(formDemo)', function (data) {
				// layer.msg(JSON.stringify(data.field));
				//   console.log("input[name='phone']",'phone','data')
				var phone = $("input[name='phone']").val();
				var regex = /^1\d{10}$/g;
				if (phone == "") {

				} else if (!regex.test(phone)) {
					layer.msg('请录入正确的手机号码！', {
						icon: 5
					});
					// alert("请录入正确的手机号码！");
					$('#phone').focus();
					return false;
				}


				$.post("{:url('HeZuo/add')}", data.field, (res) => {
                    if(Number(res)){
                        layer.msg('已经收到您的合作意向，请等待工作人员与您联系');
                    }
                    setTimeout(function(){
                        window.history.back();
                    }, 1000)
				});
				

				return false;
			});
		});
    </script>
</body>
</html>